﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Protegidos/Administracao/GENTE_Adm.master" AutoEventWireup="true" CodeFile="acCadDadosGestor.aspx.cs" Inherits="Protegidos_Administracao_Cadastros_acCadDadosGestor" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>

<asp:Content ID="Content2" ContentPlaceHolderID="cphSubConteudo" Runat="Server">

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
    function ShowInsertGestor() {
        var id = document.getElementById('<%= hdId.ClientID %>').value;
        window.radopen("_popup/acpIncluirContratoGestor.aspx?IdGestor=" + id, "InsertContrato");
        return false;
    }
    function refreshGrid(arg) {
        
            $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindContrato");
        
    }
</script>
</telerik:RadCodeBlock>  

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Telerik" >
    <Windows>
        <telerik:RadWindow  ID="InsertContrato" runat="server" Title="Associar Contrato" Height="400px"
            Width="710px" Left="400px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true"   />
    </Windows>
</telerik:RadWindowManager>

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
<AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
        <UpdatedControls>
            <telerik:AjaxUpdatedControl ControlID="RadGrid2" LoadingPanelID="RadAjaxLoadingPanel1" />
        </UpdatedControls>
    </telerik:AjaxSetting>         
    <telerik:AjaxSetting AjaxControlID="RadGrid2">
        <UpdatedControls>
            <telerik:AjaxUpdatedControl ControlID="RadGrid2" LoadingPanelID="RadAjaxLoadingPanel1" />
        </UpdatedControls>
    </telerik:AjaxSetting>                                                           
</AjaxSettings>
</telerik:RadAjaxManager>

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Telerik" >
</telerik:RadAjaxLoadingPanel> 

<table width="99%" align="center">
    <tr>
        <td>
              
            <div class="Titulo01">Dados Gestor</div>
            <div class="Titulo02">Cadastros / Gerais / Patrocinadores</div>

        </td>    
    </tr>
    <tr>
        <td>
        
            <table width="99%" align="right">
                <tr>
                    <td>
                        <div class="SuTituloVR">Dados Gestor</div>
                    </td>
                </tr>
                <tr>
                    <td>
                        
                        <table width="100%" align="right" class="textoCZ_12" > 
                            <tr id="Tr1" runat="server">
                                <td style="width: 110px">Nome:</td>
                                <td>
                                    <asp:Label ID="lblNome" runat="server" Text=""></asp:Label>
                                    <input runat="server" id="hdId" type="hidden" value="1" />
                                </td>
                            </tr>
                            <tr id="Tr2" runat="server">
                                <td style="width: 110px">Matrícula:</td>
                                <td>
                                    <asp:Label ID="lblMatricula" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                        </table>
                        
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="SuTituloVR">Gestor do(s) Contrato(s)</div>
                    </td>
                </tr>
                <tr>
                    <td>                                          
                        
                        <telerik:RadGrid ID="RadGrid2" runat="server" AllowPaging="True" Width="100%" ondeletecommand="RadGrid2_DeleteCommand" Skin="Telerik" >
                            <PagerStyle Mode="NumericPages" />
                            <MasterTableView AutoGenerateColumns="False" DataKeyNames="IdContrato" ClientDataKeyNames="IdContrato" Width="100%" CommandItemDisplay="Top" PageSize="5">
                                <Columns>
                                    <telerik:GridBoundColumn UniqueName="Descricao" HeaderText="Descricao" DataField="Descricao" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn UniqueName="DataInicioVigencia" HeaderText="DataInicioVigencia" DataField="DataInicioVigencia" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn UniqueName="DataFimVigencia" HeaderText="DataFimVigencia" DataField="DataFimVigencia" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn UniqueName="DataProrrogacao" HeaderText="DataProrrogacao" DataField="DataProrrogacao" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn UniqueName="DataRescindir" HeaderText="DataRescindir" DataField="DataRescindir" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>
                                    <telerik:GridButtonColumn UniqueName="DeleteColumn" Text="Remover" CommandName="Delete" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="60px"></telerik:GridButtonColumn>
                                </Columns>
                                <CommandItemTemplate>
                                    <!-- -->
                                    <table border="0" style="width: 100%;" class="rgCommandTable">
                                        <tbody>
                                            <tr>
                                                <td align="left">
                                                    <input class="rgAdd" type="button" title=" Associar Novo Contrato" onclick="return ShowInsertForm();" />
                                                    <a href="#" onclick="return ShowInsertGestor();">Associar Novo Contrato</a>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <!-- -->
                                </CommandItemTemplate>
                            </MasterTableView>
                        </telerik:RadGrid>
                    
                    </td>
                </tr>
                <tr>
                    <td align="right">
                    <br />
                        <a href="acContratoVigencia.aspx">Voltar</a>
                    </td>
                </tr>
            </table>
    
        </td>    
    </tr>
</table>

</asp:Content>

